package com.cskaoyan.vo.home;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * description:小程序的homeIndex的banner成员变量的类型
 * 在ad表中查询
 *
 * author:houzhitao@139.com
 */
@Data
public class WxHomeIndexSonAdVo {
    /**
     * id : 1
     * name : 合作 谁是你的菜
     * link :
     * url : http://yanxuan.nosdn.127.net/65091eebc48899298171c2eb6696fe27.jpg
     * position : 1
     * content : 合作 谁是你的菜
     * enabled : true
     * addTime : 2018-02-01 00:00:00
     * updateTime : 2018-02-01 00:00:00
     * deleted : false
     */

    private Integer id;
    private String name;
    private String link;
    private String url;
    private Byte position;
    private String content;
    private Boolean enabled;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Boolean deleted;
}
